﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Edit.Master" Inherits="System.Web.Mvc.ViewPage<DAL.SysRole>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    角色
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        角色</h2>  
    <fieldset>
        <legend>
            <input type="submit" value="修改" />
            <input type="button" onclick="BackList('SysRole')" value="返回列表" />
        </legend>
        <div class="bigdiv">
                 
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Name) %>
            </div>
            <div class="editor-field">
                <%: Html.EditorFor(model => model.Name) %>
                <%: Html.ValidationMessageFor(model => model.Name) %>
            </div>
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Description) %>
            </div>
            <div class="editor-field">
                <%: Html.TextAreaFor(model => model.Description) %>
                <%: Html.ValidationMessageFor(model => model.Description) %>
            </div>        
            <div class="editor-label">
                <%: Html.LabelFor(model => model.State) %>
            </div>
            <div class="editor-field">
                <%=Html.DropDownListFor(model => model.State,App.Models.SysFieldsDDL.GetSysFields("SysRole","State"),"请选择")%>  
            </div>  
        <div class="editor-label">
            <a class="anUnderLine" onclick="showModalMany('SysPersonId','../../SysPerson');">
                <%: Html.LabelFor(model => model.SysPersonId) %>
            </a>
        </div>
        <div class="editor-field">
            <div id="checkSysPersonId">
                <% string ids11 = string.Empty;
                if(Model!=null)
                {
                   foreach (var item11 in Model.SysPerson)
                   {
                       string item111 = string.Empty;
                       item111 += item11.Id + "&" + item11.Name;
                       if (ids11.Length > 0)
                       {
                           ids11 += "^" + item111;
                       }
                       else
                       {
                           ids11 += item111;
                       }
                %>
                <table id="<%: item111 %>"
                    class="deleteStyle">
                    <tr>
                        <td>
                            <img  alt="删除" title="点击删除" onclick="deleteTable('<%: item111 %>','SysPersonId');"  src="../../../Images/deleteimge.png" />
                        </td>
                        <td>
                            <%: item11.Name %>
                        </td>
                    </tr>
                </table>
                <%}}%>
                <input type="hidden" value="<%= ids11 %>" name="SysPersonIdOld" id="SysPersonIdOld" />
                <input type="hidden" value="<%= ids11 %>" name="SysPersonId" id="SysPersonId" />
            </div>
        </div>  
        <div class="editor-label">
            <a class="anUnderLine" onclick="showModalMany('SysPromiseId','../../SysPromise');">
                <%: Html.LabelFor(model => model.SysPromiseId) %>
            </a>
        </div>
        <div class="editor-field">
            <div id="checkSysPromiseId">
                <% string ids12 = string.Empty;
                if(Model!=null)
                {
                   foreach (var item12 in Model.SysPromise)
                   {
                       string item121 = string.Empty;
                       item121 += item12.Id + "&" + item12.ActionName;
                       if (ids12.Length > 0)
                       {
                           ids12 += "^" + item121;
                       }
                       else
                       {
                           ids12 += item121;
                       }
                %>
                <table id="<%: item121 %>"
                    class="deleteStyle">
                    <tr>
                        <td>
                            <img  alt="删除" title="点击删除" onclick="deleteTable('<%: item121 %>','SysPromiseId');"  src="../../../Images/deleteimge.png" />
                        </td>
                        <td>
                            <%: item12.ActionName %>
                        </td>
                    </tr>
                </table>
                <%}}%>
                <input type="hidden" value="<%= ids12 %>" name="SysPromiseIdOld" id="SysPromiseIdOld" />
                <input type="hidden" value="<%= ids12 %>" name="SysPromiseId" id="SysPromiseId" />
            </div>
        </div>  
        <div class="editor-label">
            <a class="anUnderLine" onclick="showModalMany('SysMenuId','../../SysMenu');">
                <%: Html.LabelFor(model => model.SysMenuId) %>
            </a>
        </div>
        <div class="editor-field">
            <div id="checkSysMenuId">
                <% string ids13 = string.Empty;
                if(Model!=null)
                {
                   foreach (var item13 in Model.SysMenu)
                   {
                       string item131 = string.Empty;
                       item131 += item13.Id + "&" + item13.Name;
                       if (ids13.Length > 0)
                       {
                           ids13 += "^" + item131;
                       }
                       else
                       {
                           ids13 += item131;
                       }
                %>
                <table id="<%: item131 %>"
                    class="deleteStyle">
                    <tr>
                        <td>
                            <img  alt="删除" title="点击删除" onclick="deleteTable('<%: item131 %>','SysMenuId');"  src="../../../Images/deleteimge.png" />
                        </td>
                        <td>
                            <%: item13.Name %>
                        </td>
                    </tr>
                </table>
                <%}}%>
                <input type="hidden" value="<%= ids13 %>" name="SysMenuIdOld" id="SysMenuIdOld" />
                <input type="hidden" value="<%= ids13 %>" name="SysMenuId" id="SysMenuId" />
            </div>
        </div>
        </div>
    </fieldset>  
    <%: Html.HiddenFor(model => model.Version) %>
    <%: Html.HiddenFor(model => model.CreateTime) %>
    <%: Html.HiddenFor(model => model.CreatePerson) %>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">   
    <script type='text/javascript'>
        $(function () {      
            
        });
    </script>
</asp:Content>

